package com.ld.oauth2.config.properties;


import com.ld.oauth2.emun.LoginResponseType;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "auth.security.authentication")
@Data
public class SecurityProperties {

    private String loginPage = "http://localhost:7000/";
    private String loginProcessingUrl = "/ld/login";
    private String usernameParameter = "name";
    private String passwordParameter = "pwd";
    private String[] staticPaths = {"/dist/**","/modules/**","/plugins/**","/fonts/**","/admin/**","/css/**",
            "/images/**","/js/**","/lib/**","/pages/**","http://localhost:7000/"};
    private LoginResponseType loginResponseType = LoginResponseType.JSON;

}
